package refparam;

public class ManDrama {
	public static void main(String[] args) {
		//1.创建5个电视剧
		Drama d1 = new Drama();
		Drama d2 = new Drama();
		Drama d3 = new Drama();
		Drama d4 = new Drama();
		Drama d5 = new Drama();
		//2.给5个对象赋值
		d1.name = "我们的父辈";
		d1.actors = new String[] {"偶尔克卜鲁克","汤沐夕林"};
		d2.name = "亲爱的小孩";
		d2.actors = new String[] {"秦昊","任素溪"};
		d3.name = "叶问";
		d3.actors = new String[] {"甄子丹","泰森"};
		d4.name = "乡村爱情";
		d4.actors = new String[] {"赵本山","刘晓光"};
		d5.name = "人民的名义";
		d5.actors = new String[] {"陆毅","珂兰"};
		//3.创建一个男人
		Man man = new Man();
		man.name = "刘丰银";
		//4.调用方法看电视，分别传入5个电视剧
		man.watchTV(d1);
		man.watchTV(d2);
		man.watchTV(d3);
		man.watchTV(d4);
		man.watchTV(d5);
	}
}